#ifndef HAIKUOS_INCLUDE_POSIX_SYS_FILE_H
#define HAIKUOS_INCLUDE_POSIX_SYS_FILE_H

#include <sys/types.h>

// for use with flock()
#define LOCK_SH 0x01 // share file lock
#define LOCK_EX 0x02 // exclusive file lock
#define LOCK_NB 0x04 // don't block when locking
#define LOCK_UN 0x08 // unlock file

#ifdef __cplusplus
extern "C" {
#endif

extern int flock(int fd, int op);

#ifdef __cplusplus
}
#endif


#endif // header file protect
// END: CODEREVIEW: